<template>
    <div>
      <Studnet :sname="s1.sname" :age="s1.age" :firends="s1.firends" :teacher="s1.teacher"></Studnet>
      <Studnet :sname="s2.sname"></Studnet>
       <Studnet :sname="s3.sname" :age="s3.age"></Studnet>
    </div>
</template>

<script>
import Studnet from '@/components/Student.vue'
export default {
    components:{
        Studnet
    },
    data(){
        return{
            s1:{
                sname:"Giles",
                age:38,
                firends:['jack','jerry'],
                teacher:{
                    name:'king',
                    age:68
                }
            },
            s2:{
                sname:'Monica'
            },
            s3:{
                sname:'sky',
                age:130
            }
        }
    }
}
</script>

<style>

</style>